package base;

import lombok.Getter;
import lombok.val;

@Getter
public enum TestEnum {
    A("1", "A"),
    B("2", "B");

    TestEnum(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private String value;
    private String desc;

    public static void main(String[] args) {
        val a = TestEnum.A;
        switch (a) {
            case A:
                System.out.println("a = " + a);
            case B:
                System.out.println("b = " + a);
            default:
                System.out.println("default = " + a);
        }
    }
}
